import java.sql.SQLException;
import java.util.Collection;
import java.util.List;
import java.util.Set;

/**
 * Created by aleks_000 on 15.12.13.
 */
public interface Repository<T> {

    Collection<T> getAll() throws SQLException;

    T get(int id) throws SQLException;

    T create(T obj) throws SQLException;

    boolean update(T obj) throws SQLException;

    boolean delete(T obj) throws SQLException;

    boolean delete(int id) throws SQLException;
}
